/*
 * Copyright (c) 2014, FPX and/or its affiliates. All rights reserved.
 * Use, Copy is subject to authorized license.
 */
package pyip.lib.mixtool.util.temp;


/**
 * 系统异常，该异常指非用户操作造成，程序在运算过程中发生的异常
 * @author shiw 
 * 2014年12月15日
 */
public class SystemException extends RuntimeException {

	private static final long serialVersionUID = 7581695155270610988L;
	
	private ExceptionEnum exceptionEnum;
	
	public SystemException(ExceptionEnum exceptionEnum){
		super(exceptionEnum.getMsg());
		this.exceptionEnum = exceptionEnum;
	}
	
	public SystemException(ExceptionEnum exceptionEnum, Throwable e){
		super(exceptionEnum.getMsg(), e);
		this.exceptionEnum = exceptionEnum;
	}

	public ExceptionEnum getExceptionEnum() {
		return exceptionEnum;
	}

	public void setExceptionEnum(ExceptionEnum exceptionEnum) {
		this.exceptionEnum = exceptionEnum;
	}
}	
